import random

def rand_color():
    hex_char = ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f')
    color = "#"
    for i in range(6):
        color += random.choice(hex_char)
    
    if color == "#ffffff":
        return rand_color()
    else:
        return color